package kevin.framework.basic.common.thread;

import javax.servlet.http.HttpServletResponse;

public class ResponseThreadHolder {
    private static ThreadLocal<HttpServletResponse> holder = new ThreadLocal<HttpServletResponse>();

    public static HttpServletResponse getResponse() {
        return holder.get();
    }

    public static void setResponse(HttpServletResponse response) {
        holder.set(response);
    }

    public static void clear() {
        holder.remove();
    }
}
